<!DOCTYPE html>
<html lang="en">

    <include file="Public:header" />
        <!-- Side menu -->
        <!-- 引用header.html -->
        <!-- /Side menu -->
       
        <!-- Main window -->
        <div class="main_container" id="users_page">

            <div class="row-fluid">

                <h2 class="heading">
               培训信息管理
                </h2>
            </div> <!-- /row-fluid -->


            <!--此处往下为代码改写部分-->
            <div class="row-fluid">
                <div class="widget widget-padding span12">
                    <div class="widget-header">
                        <i class="icon-group"></i>
                        <h5>培训列表</h5>
                        <div class="widget-buttons">
                            <!--<a href="#" data-title="Add User" data-toggle="modal" data-target="#example_modal"><i class="icon-plus"></i></a>-->
                            <a href="#" data-title="Collapse" data-collapsed="false" class="collapse"><i class="icon-chevron-up"></i></a>
                        </div>
                    </div>
                    <div class="widget-body table-responsive ">
                        <table id="users" class="table table-condensed table-striped table-bordered dataTable">
                            <thead>
                            <a href="/neu11_yuejian/yuejian11/Admin/sport/addtrain.html"> 增加培训信息</a>
                            <tr>
                                <th>序号</th>
                                 <th>发布者姓名</th>
                                 <th>培训名称</th>
                                 <th>培训图片</th>
                                <th>培训介绍</th>
                                <th>培训时间</th>
                                <th>培训地址</th>
                                <th>培训事项</th>
                                 <th>培训状态</th>
                                 <th>培训分类</th>
                                 <th>培训发布时间</th>
                                <th >操作</th>
                            </tr>
                            </thead>
                        <tbody>
                                 <volist name="train" id="vo">
                            <tr>
                            <td>{$key+1}</td>
                             <!-- <td><img src="../../../Public/Admin/photo/{$vo.photo}" width="80" alt="头像" title="{$vo.aliasname}"></td> -->
                             
                           <td width="110">{$vo.spadmin_name}</td>
                             <td>{$vo.train_name}</td>
                           <td><img src="__PUBLIC__/Uploads/sportphoto/{$vo.train_pic}" width="90" alt="头像" ></td>
                             <td>{$vo.train_introduce}</td>
                              <td>{$vo.train_time}</td>
                             <td>{$vo.tradin_address}</td>
                              <td>{$vo.train_notice}</td>
                             <td width="90">
                                    <if condition="$vo.isfinished eq '0'">报名开始
                                    <else/>报名结束
                                    </if>
                                </td>
                             <td width="90">{$vo.train_type_name}</td>
                             
                             
                            <td>{$vo.createtime}</td>   
                      
                       

                        <td>

                       
                        <a href="__URL__/edittrain/train_id/{$vo.train_id}">修改</a> |
                        <switch name="vo.isfinished">
                        <case value="1"><a href="__URL__/isfinish/train_id/{$vo.train_id}/isfinish/{$vo.isfinished}">报名开始</a> |</case>
                        <default /><a href="__URL__/isfinish/train_id/{$vo.train_id}/isfinish/{$vo.isfinished}">报名结束</a> |
                        </switch>
                                             |
                        <a href="__URL__/deltrain/train_id/{$vo.train_id}" onclick="return confirm('你确定要删除吗？')"><i class="icon-trash"></i>删除</a>
                        </td> 


                        </tr>
                        </volist>
                            </tbody>
                        </table>
                    </div> <!-- /widget-body -->
                </div> <!-- /widget -->
            </div> <!-- /row-fluid -->

        </div>
        <!-- /Main window -->

    </div><!--/.fluid-container-->
</div><!-- wrap ends-->
</body>
</html>